<h1>Product added to wish list</h1>

<? //if (count($wishlists)<2){ ?>
<!--
	<div class="preview">
		<div class="contain">
			<img height="66" border="0" width="106" alt="" src="<? // =base_url().UPLOADS_FOLDER.PRODUCT_IMG_FOLDER.thumbnail($item["Main_Image"])?>"/>
			<p>
			  <strong>
					<?=$item["Name_Products"]?>
			  </strong>
			</p>
	
			<p>
			  <? //=$item["Introduction_Products"]?>
			</p>
	
		</div>
	</div>
-->
<? //} ?>

<? if (count($wishlists)<2){ 

	$total_items = count($wishlists[0]['items']);
?>    

	You have <?=$total_items?> product<? if ($total_items>1) echo "s"?> in your list
            
<? } else { 

	$total_items = 0;
	foreach( $wishlists as $list) {   
    	$total_items += count($list["items"]);
    } 

?>

    <p>You have <?=$total_items?> product<? if ($total_items>1) echo "s"?> in your wish list:</p>
    
    <? foreach( $wishlists as $list) { ?>
    	
        <label>
        	<?=$list["name"]?> (<?=count($list["items"])?> product<? if (count($list["items"])!=1) { ?>s<? }?>)
        </label>
    
    <? } ?>
	
<? } ?>

<br /><br /><br /><br />

<!-- FIX ME: Move this class to the stylesheet, there should be no inline styling here -->
<div class="bottom_buttons" style="position:absolute;bottom:30px">
    <a class="button" href="<?=site_url('wishlist')?>">VIEW MY WISH LIST</a>
    <a class="button cancel" href="#">DONE</a>
</div>
	